<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>注册</title>
</head>
<body>
<h1>欢迎来到注册界面</h1>
<h3 style="color:red;">{{ error }}</h3>
<form action="" method="post">
    {% csrf_token %}
账号:<input type="text" name="uname">
    <br>
    密码:<input type="password" name="upwd">
    <br>
    确认密码:<input type="password" name="upwd2">
    <br>
    角色:
    <input type="radio" name="role" value="1">学生
    <input type="radio" name="role" value="2">老师
    <br>
    <input type="submit" value="注册">
</form>
</body>
</html>